﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBManager.DanhMucHeThong.DAL;
using DBManager.DanhMucHeThong.Entities;
namespace DBManager.DanhMucHeThong.BAL
{
    public class DanhMuc_BAL
    {
        public static void DanhMuc_Add(int DanhMucParentID,string TenDanhMuc,string LoaiDanhMuc)
        {
            DanhMuc_DAL doit = new DanhMuc_DAL();
            doit.DanhMuc_Add(DanhMucParentID,TenDanhMuc,LoaiDanhMuc);

        }
        public static void DanhMuc_Edit(int DanhMucID, int DanhMucParentID, string TenDanhMuc, string LoaiDanhMuc)
        {
            DanhMuc_DAL doit = new DanhMuc_DAL();
            doit.DanhMuc_Edit(DanhMucID, DanhMucParentID, TenDanhMuc, LoaiDanhMuc);

        }
        public static void DanhMuc_Delete(int DanhMucID)
        {
            DanhMuc_DAL doit = new DanhMuc_DAL();
            doit.DanhMuc_Delete(DanhMucID);

        }
        public static List<DanhMuc_Ent> DanhMuc_GetItems(string LoaiDanhMuc)
        {
            DanhMuc_DAL doit = new DanhMuc_DAL();
            return doit.DanhMuc_GetItems(LoaiDanhMuc);

        }
        public static DanhMuc_Ent DanhMuc_GetItem(int DanhMucID)
        {
            DanhMuc_DAL doit = new DanhMuc_DAL();
            return doit.DanhMuc_GetItem(DanhMucID);

        }

    }
}
